<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/includes.jsp" %>
<html>
 <head>
    <title>业务员查找</title>
    <!-- import css and js -->
	<%@ include file="/common/meta.jsp" %>
	<script src="${ctx}/js/ligerUI/js/plugins/ligerLayout.js" type="text/javascript"></script>
	<script src="${ctx}/js/jsp/comm.js" type="text/javascript"></script>
	<script type="text/javascript">
		var basic_Url="${ctx}/public/windowalert";
		
		function createSearch(){
			init(1,8,'100,100,100,100,100,100,100,100','10%');
			//第一行的数据
			addCommon(0,0,"lable","中文名：");
			addCommon(0,1,"txtlike","zd003ZhName");	
			addCommon(0,2,"lable","英文名：");
			addCommon(0,3,"txtlike","zd002EnName");
		}
		
		function searchAP(){
			multipleSearch("#table1",true,"",basic_Url+"/clerklist.do");
		}
		var grid;
		$(function(){
				grid = $("#table1").ligerGrid({
		        columns: [
		                { display: '中文名', name: 'zd003ZhName', width: 180 },
 						{ display: '英文名', name: 'zd002EnName', width: 180 },
 						{ display: '电话', name: 'zd004Phone', width: 180 },
 						{ display: '手机', name: 'zd005Mobel', width: 180 },
 						{ display: 'QQ', name: 'zd006Qq', width: 180 },
 						{ display: '邮箱', name: 'zd007Mail', width: 180},
 						{ display: '客户地址', name: 'zd008Address', width: 180 }
		                      ],  usePager: true,pageSize:30,
		                      url : basic_Url+"/clerklist.do",
		                      width: "100%", height:"98%", checkbox: true
		                  });
			$("#pageloading").hide();
		});
		
		function getSelected(){
			var rows = grid.getCheckedRows();
			 return rows;
		}
		
		function Close(){
			CloseDialog();
		}
		//按回车 ，查询
		document.onkeydown=keyListener;   
		function keyListener(e){   
		    e = e ? e : event;  
		    if(e.keyCode == 13){   
		    	searchAP();
		    }   
		}  
	</script>
	
  </head>
 <body style="padding:10px" onload="createSearch()">  
       <div id="layout1">
          <div id="pageHeader" class="pageHeader">
               <div class="searchBar" id="multipleSearchDialog">
	                <table class="table" width="100%" id="searchHeader" >  
                        <tbody id="newbody">
                        </tbody>
 	                </table>
                    <div class="subBar">
			             <ul>
				             <li><div class="buttonActive"><div class="buttonContent"><button type="submit" id="btnSearch" onclick="searchAP()">查询</button></div></div></li>
				             <li><a class="button" onclick="clearSearch()"><span>重置</span></a></li>
			             </ul>
	                </div>
               </div>
          </div>
      </div>
      <div position="center" id="table1">
      </div>
      <div class="clear"></div>
    </body>
</html>